home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / BoxMooV / headers / BoxMooV_Texture.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  1.1 KB  |  45 lines  |  [TEXT/CWIE]

  1. /*  BoxMooV_texture.h                                                                            
  2.  *    
  3.  *    Rick Evans                                                    
  4.  *    Robert Dierkes                                                                                
  5.  *    (c)1994-96 Apple Computer Inc., All Rights Reserved                                
  6.  *    
  7. */
  8. #ifndef _TEXTURE_H_
  9. #define _TEXTURE_H_
  10.  
  11. #include <QDOffscreen.h>
  12. #include <Movies.h>
  13.  
  14. #include "QD3D.h"
  15. #include "QD3DGroup.h"
  16. #include "QD3DStorage.h"
  17.  
  18. /*----------------------*/
  19. /*    Type Declarations    */
  20. /*----------------------*/
  21.  
  22. struct _AnimTxt {
  23.     TQ3StoragePixmap    fStoragePixmap;        /*    The QD3D Pixmap    */
  24.  
  25.     GWorldPtr            fpGWorld;            /*    The Offscreen Buffer    */
  26.  
  27.     Movie                fMovie;                /*    The Movie source    */
  28.  
  29.     int                    resolution;            /*    the height and width of the pict    */
  30. };
  31.  
  32. typedef struct _AnimTxt TAnimatedTexture, *TAnimatedTexturePtr, **TAnimatedTextureHdl;
  33.  
  34. /*--------------*/
  35. /*    Prototypes    */
  36. /*--------------*/
  37.  
  38. TAnimatedTextureHdl    Texture_New(void);
  39. Boolean                Texture_Delete(TAnimatedTextureHdl    theTexture);
  40. int                    Texture_GetResolution(TAnimatedTextureHdl    theTexture);
  41. TQ3Status            Texture_AddToGroup(TAnimatedTextureHdl    theTexture, TQ3GroupObject    theGroup) ;
  42. Boolean                Texture_NextFrame(TAnimatedTextureHdl pAnimTxtr);
  43.  
  44. #endif
  45.